home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-069 qemm 603 / 1.ima / QEMM-MAN / CH4.QEM < prev    next >
Encoding:
Text File  |  1991-10-07  |  18.7 KB  |  458 lines

  1. Chapter 4 
  2.  
  3. The QEMM.COM Program
  4.  
  5.  This chapter describes the features of the QEMM.COM program. The
  6. program  has two purposes. You use QEMM.COM to change the mode
  7. (state) of QEMM to ON, OFF or AUTO. You also use QEMM.COM to
  8. report status information about QEMM and report information about
  9. your first megabyte of memory. QEMM.COM displays first meg
  10. information in either map or list format. The information
  11. displayed by QEMM.COM is the same as that displayed by
  12. Quarterdeck's Manifest program for the QEMM-386 category.
  13.  
  14. QEMM.COM commands consist of QEMM followed by a command line
  15. parameter. If the command line parameter has a long name, you can
  16. enter an abbreviation instead of the name. This abbreviation is
  17. shown in parentheses following the parameter name.
  18.  
  19. There are two command line parameters that will help you use
  20. QEMM.COM:
  21.  
  22. ~Item~ ?  lists all the names and abbreviations of all QEMM.COM
  23. command line parameters.
  24.  
  25. ~Item~ Help displays the option name and a one line description.
  26.  
  27. To enter these commands:
  28.  
  29. ~Step~ Type QEMM ? and press <Enter>, or 
  30.  
  31. ~Step~ Type QEMM HELP and press <Enter>.
  32.  
  33. The information requested is displayed on the screen.
  34.  
  35. Two command line parameters control the display of messages from
  36. QEMM.COM. These are:
  37.  
  38. ~Item~ NOPAUSEONERROR (NOPE) instructs QEMM.COM not to display
  39. the message, "Press any key to continue, ESC to abort". This
  40. message is normally displayed when you enter a wrong QEMM.COM
  41. command line parameter. 
  42.  
  43. ~Item~ PAUSE instructs QEMM.COM to pause for a key before
  44. executing a command.
  45.  
  46. One command line parameter controls QEMM.COM's report formats:
  47.  
  48. ~Item~ MAP instructs QEMM.COM to display its report in a map
  49. format. 
  50.  
  51. The default report format is a list.  
  52.  
  53. This modifier changes the report format to a map. For example, to
  54. display the QEMM.COM Accessed report as a map:
  55.  
  56. ~Step~ Type QEMM ACCESSED MAP and press <Enter>. 
  57.  
  58. QEMM-386 watches what memory is accessed by programs~dash~so that
  59. QEMM.COM can at any time display a report about what memory has
  60. been accessed and what has not. QEMM.COM also can perform an
  61. analysis to find any additional memory you can use to load TSRs,
  62. drivers, and DOS resources into high memory. 
  63.  
  64. To give you control over when QEMM.COM begins watching memory to
  65. determine what memory is accessed, QEMM.COM has a command line
  66. parameter called RESET.
  67.  
  68. ~Item~ RESET resets the state of memory to unaccessed. 
  69.  
  70. RESET is useful to use before running a program, so that you can
  71. determine which areas of memory are accessed by a specific
  72. program.
  73.  
  74. ~Subhead~ Changing QEMM's Mode
  75.  
  76. There may be times when you wish to change the current mode of
  77. QEMM. The mode controls whether QEMM puts the system into virtual
  78. 8086 mode and how expanded memory should be handled. You can set
  79. the current mode to AUTO, ON, or OFF.
  80.  
  81. ~Item~ AUTO (AU) specifies that QEMM should turn ON when a
  82. program needs expanded memory.
  83.  
  84. ~Item~ ON specifies that expanded memory is available and the
  85. processor is in virtual 8086 mode.
  86.  
  87. ~Item~ OFF specifices that expanded memory is not available and
  88. the processor is in real mode.
  89.  
  90. The mode is forced ON if conventional or video memory is filled,
  91. high RAM or ROMs are mapped, conventional memory is sorted, or
  92. expanded memory is in use.
  93.  
  94. To change the current mode to ON:
  95.  
  96. ~Step~ Type QEMM ON and press <Enter>. 
  97.  
  98. The mode is then changed. You can change the mode to OFF or AUTO
  99. in the same way you changed the mode to ON, provided there are no
  100. conditions which have forced the mode ON.
  101.  
  102.  
  103. ~Subhead~ QEMM.COM Reports
  104.  
  105.  QEMM.COM has five reports which give you information you may use
  106. to optimize your memory configuration. If you have no parameters
  107. on the QEMM line, you will get the Summary report followed by the
  108. Type report. These five reports are as follows:
  109.  
  110. ~Item~ Summary: This report displays the current mode of QEMM,
  111. the expanded memory currently available, and the page frame
  112. address.
  113.  
  114. ~Item~ Type: This report displays what types of memory exist in
  115. your first megabyte of address space.
  116.  
  117. ~Item~ Accessed: This report indicates the areas of memory that
  118. have and have not been accessed from the time QEMM started
  119. running (or you did a QEMM RESET) until the time of the display. 
  120.  
  121. ~Item~ Analysis: This report gives a cross-reference of the
  122. information in the Accessed and Type reports. Based upon what
  123. memory has been specified and how QEMM.SYS is currently
  124. configured, Analysis suggests command line parameters that could
  125. be given to QEMM.SYS to more efficiently use high memory. You
  126. should follow these recommendations only if you  follow the
  127. analysis procedure discussed on page 31.
  128.  
  129. ~Item~ Memory: This report gives you an accounting of the memory
  130. in your PC (conventional, high RAM, extended, and expanded) both
  131. before and after QEMM.SYS has configured this memory.
  132.  
  133.  You can display three reports, (Type, Accessed, and Analysis)
  134. either in list or map format.
  135.  
  136.  
  137. ~Subhead~ QEMM .COM Summary
  138.  
  139.  QEMM.COM Summary presents you with the summary status
  140. information about QEMM.SYS. 
  141.  
  142.  Mode refers to the current state of QEMM.SYS. When there is high
  143. RAM, ROM mapping, memory back-filling, or video filling, QEMM's
  144. mode is ON and may not be turned OFF. Otherwise, QEMM's mode is
  145. typically either AUTO/ON or AUTO/OFF, depending upon whether
  146. expanded memory is in use. If QEMM's mode is OFF (without the
  147. AUTO) then expanded memory is not accessible until you change the
  148. mode.
  149.  
  150.  Expanded Memory Available reflects the amount of memory
  151. available to programs which support EMS.
  152.  
  153.  Page Frame gives the address of the page frame. This entry
  154. indicates "none" if there is no page frame allocated and
  155. supported.
  156.  
  157.  
  158.  
  159. ~Subhead~ QEMM.COM Type
  160.  
  161.  
  162.  QEMM.COM Type presents you with two views of the  first megabyte
  163. of memory as seen by QEMM-386. The default view is a
  164. list~dash~giving memory area, size of the area in K, and how it
  165. is being used (see below). To get a visual picture of how your
  166. memory is configured:
  167.  
  168. ~Step~ Type QEMM Type Map and press <Enter>.
  169.  
  170.  In the map, each row of the map contains 16 characters
  171. representing 64K of memory. Each character (+ * F H M X V A R /)
  172. represents 4K of memory~dash~and has a special meaning, as
  173. described. Base addresses are indicated in the left column (0n00
  174. at the top through Fn00 at the bottom). To determine a particular
  175. 4K area replace the value "n" with the character listed at the
  176. top of the screen.
  177.  
  178.  You use these reports to determine the effect of QEMM-386's
  179. management of memory in your PC.
  180.  
  181.  Key terms used in QEMM.COM Type are as follows:
  182.  
  183. ~Item~ Mappable (+): areas of memory which can be mapped using
  184. EMS function calls. These areas must be 16K in size and aligned
  185. on 16K boundaries. Areas of high memory that are marked as
  186. Mappable can also be converted to high RAM by adding the RAM
  187. switch to the QEMM.SYS command line.
  188.  
  189. ~Item~ Rammable (*): areas of memory which can be mapped by
  190. QEMM-386 but are too small to be accessed by EMS function calls.
  191. You must add the RAM switch to the QEMM.SYS command line to fill
  192. the area with memory for use as high RAM.
  193.  
  194. ~Item~ Page Frame (F): a mappable area, 64K in size, which is the
  195. place that EMS 3.2 programs use for expanded memory access. Other
  196. mappable regions are only used by programs written specifically
  197. for EMS 4.0 or EEMS.
  198.  
  199. ~Item~ High RAM (H): areas above conventional memory which have
  200. been filled with RAM by QEMM-386. Any areas above conventional
  201. memory marked as Mappable (+) or Rammable (*) may be converted to
  202. high RAM (H) by adding the RAM switch to the QEMM.SYS command
  203. line. Once it has been added and the system re-booted, high RAM
  204. areas may be used by QEMM's programs to load TSRs and device
  205. drivers.
  206.  
  207. ~Item~ Mapped ROM (M): addresses of Read Only Memory which have
  208. been copied to RAM, and then mapped into the original addresses
  209. by QEMM's ROM switch. Mapping ROMs lets ROM code run in fast
  210. memory. QEMM automatically maps one page of the system ROM from
  211. F000-FF00 to detect reboots.
  212.  
  213. ~Item~ Excluded (X): areas of memory which have been explicitly
  214. excluded from use by the Exclude switch. QEMM-386 automatically
  215. excludes the addresses from 0000 to 0FFF. If your adapter card
  216. fails to identify itself properly, QEMM may try to use all or
  217. part of the memory addresses used by the adapter as either high
  218. RAM or Mappable memory. You must explicitly exclude the
  219. conflicting memory areas from QEMM or problems will occur.
  220.  
  221. ~Item~ Video (V): addresses reserved for video display memory.
  222.  
  223. ~Item~ Adapter RAM (A):  regions of memory which have RAM mapped
  224. into them by other adapter cards.
  225.  
  226. ~Item~ ROM (R): regions of Read Only Memory which have not been
  227. re-mapped by the QEMM.SYS ROM switch.
  228.  
  229. ~Item~ Split ROM (/): addresses which QEMM.SYS has detected as
  230. having ROM which occupies only a portion of the 4K area. Such
  231. areas cannot be re-mapped by the QEMM.SYS ROM switch.
  232.  
  233. ~Subhead~ QEMM.COM Accessed 
  234.  
  235.  
  236.  QEMM.COM Accessed presents you with two views of the first
  237. megabyte of memory~dash~indicating the 4K regions of memory that
  238. have and have not been accessed from the time QEMM started (or
  239. you did a QEMM RESET) until the time of the display. This
  240. information is only valid if QEMM has been ON.
  241.  
  242.  The first view is a list of this information. The second view is
  243. a map. 
  244.  
  245.  QEMM.COM uses the term Unaccessed (U) to refer to the areas of
  246. memory which have not been read or written by a program.
  247. Potentially, those areas above 640K may be usable for mapping
  248. high RAM.
  249.  
  250.  QEMM.COM also distinguishes between areas of memory that have
  251. been read by a program~dash~Accessed (A), and areas of memory
  252. which have had data written to them by a program, Written (W),
  253. when the map format is used.
  254.  
  255.  
  256. You can use the Accessed report to determine how big a program is
  257. (i.e. how much conventional memory it accesses and writes into)
  258. and whether a program accesses or writes into an area of high
  259. memory.
  260.  
  261.  Inaccuracy of Accessed Map for Mappable Regions: The information
  262. displayed may not be accurate for mappable regions. When the
  263. computer maps memory into a mappable area, the process of mapping
  264. clears the state of the region, and makes it appear to be
  265. unaccessed. This clearing occurs often in the conventional areas
  266. of memory in DESQview by virtue of multitasking. Active use of
  267. the Page Frame for mapping will also clear these indicators.
  268. Other areas are not so frequently mapped.
  269.  
  270.  
  271. ~Subhead~ QEMM.COM Analysis 
  272.  
  273.  
  274.  QEMM.COM Analysis presents you with two views of your PC's first
  275. megabyte of memory~dash~indicating QEMM.COM's assessment of what
  276. memory is OK to use, what memory should be excluded and what
  277. should be included. This assessment is based upon you having had
  278. QEMM.COM watch what memory was accessed by your programs. This
  279. enables you to better optimize the use of your memory.
  280.  
  281.  The default view is in list form. The alternate view of this
  282. information is in map format. You use the map to see what memory
  283. can be used. However, the list gives you the memory addresses
  284. that you may instruct QEMM.SYS to include or exclude.
  285.  
  286.  WARNING: The steps you must follow in order for the QEMM-386
  287. Analysis screen to be accurate are described later in this
  288. section. If you do not follow this procedure, the information in
  289. these screens may not be valid, and any and all changes you make
  290. based on these reports may be inappropriate.
  291.  
  292.  
  293. There are three terms used in this report:
  294.  
  295. ~Item~ OK (O): areas of memory that have been properly specified
  296. to QEMM.
  297.  
  298. ~Item~ Exclude (X): areas of memory that have been used by a
  299. program, but QEMM did not expect it to. You should use the
  300. EXCLUDE switch to QEMM to prevent QEMM from using these areas.
  301.  
  302. ~Item~ Include (I): areas of high memory that have not been used
  303. by a program, but have been reserved by QEMM. You may use the
  304. INCLUDE switch to QEMM to allow QEMM to use these areas.
  305.  
  306.  
  307. ~Subhead~ Analysis Procedure
  308.  
  309.  The Benefit of QEMM.COM Analysis: As you run your programs, QEMM
  310. is recording the memory accessed by these programs. QEMM then
  311. analyzes the memory accessed and recommends how to best configure
  312. QEMM.SYS for optimum use of memory. The end result of analyzing
  313. your memory is that more of your high memory may become usable
  314. for memory resident programs, device drivers, and DOS
  315. resources~dash~resulting in more conventional memory for your
  316. programs.
  317.  
  318.  However, for QEMM to accurately determine what high memory
  319. addresses are used requires several sequential steps, all of
  320. which must be performed before accurate results will be obtained.
  321.  
  322. ~Item~ Modify the QEMM.SYS command line in CONFIG.SYS so it
  323. specifies only the ON and MAPS=0 parameters. 
  324.  
  325. ~Item~ Save your CONFIG.SYS file and re-boot your PC.
  326.  
  327. ~Item~ Run all of your programs and perform all of their
  328. functions. If you use DESQview, you should start it, select any
  329. options other than summary programs and quit out.
  330.  
  331. ~Item~ Access all of the hardware in your computer. If you have
  332. two monitors connected to your computer, display information on
  333. each of them. Access all of your disk drives. Format a diskette.
  334. Print a document. If you have a network adapter card, a 3270 card
  335. or the like, connect to it.
  336.  
  337. ~Item~ Do not run utilities other than QEMM or Manifest which
  338. check the functioning of your computer's hardware, especially
  339. those that check memory.
  340.  
  341. ~Item~ After you have run every program you use, display
  342. QEMM.COM's Analysis report.
  343.  
  344. ~Item~ Examine the Analysis and note the suggestions. Update the
  345. QEMM.SYS command line in CONFIG.SYS to include or exclude memory
  346. areas specified in the Analysis List and to remove the ON and
  347. MAPS=0 parameter you added earlier.
  348.  
  349.  Verify Your QEMM Configuration: If you want to verify that
  350. you've optimized the use of your memory, repeat the Analysis
  351. process and display the Analysis List. You should see " 0000 -
  352. FFFF  1024K   OK". If you see additional Exclude (X) areas, you
  353. may want to use them. If you see additional Include (I) areas,
  354. ignore them unless you have followed the complete procedure.
  355.  
  356. ~Subhead~ QEMM.COM Memory
  357.  
  358.  QEMM.COM Memory gives you an accounting of the memory in your PC
  359. (conventional, high RAM, extended, and expanded) before and after
  360. QEMM-386 has configured this memory.
  361.  
  362.  On some computers there will be a fifth category, either Top
  363. Memory (as seen on Compaqs) or shadow RAM (as seen only on
  364. machines using the Chips & Technologies chip set).
  365.  
  366.  You use this report to:
  367.  
  368. ~Item~ see a summary of how QEMM has made use of your memory,
  369.  
  370. ~Item~ quickly learn if QEMM can detect the shadow RAM on your
  371. PC,
  372.  
  373. ~Item~ find out how much memory is in your PC, and how it is
  374. being used.
  375.  
  376.  The Initial column shows the totals of each type of memory when
  377. you turn on your PC. The Expanded and high RAM categories always
  378. start at 0K (zero K). The total of this column should equal the
  379. amount of memory in your PC.
  380.  
  381.  The Unavailable to QEMM column indicates memory which has been
  382. made unavailable to QEMM before QEMM gets a chance to use it.
  383. Drivers loaded before QEMM which use extended memory make that
  384. memory unavailable to QEMM. Also, machines with shadow RAM make
  385. some of it unavailable for QEMM to use.
  386.  
  387.  The Converted by QEMM column shows what QEMM does to your
  388. memory. It converts Extended memory (and Shadow RAM or Top Memory
  389. if you have any) into Expanded Memory and High RAM. Thus, the
  390. column shows some memory being "used" (subtracting from the
  391. available and some being "created" (adding to the available).
  392. QEMM can fill in missing conventional memory, so you might see it
  393. creating more conventional memory. The total of this column
  394. indicates how much memory QEMM keeps for its own use and for
  395. mapping your ROMs.
  396.  
  397.  The Leaving column shows how much memory is left over once QEMM
  398. is through initializing itself. These numbers are very important.
  399. The remaining conventional memory, usually 640K, indicates how
  400. much contiguous memory is accessible for your DOS programs. The
  401. remaining Extended memory, usually 0K, indicates how much
  402. Extended memory is left over for other programs to use. Note that
  403. if your programs can access memory through the EMS, XMS or VCPI
  404. interfaces, then they don't need any Extended memory left for
  405. them by QEMM. The remaining Expanded memory is how much memory is
  406. available to programs which support EMS, XMS or VCPI. The
  407. remaining High RAM indicates the memory available for loading DOS
  408. resources, TSRs, & device drivers into high memory.
  409.  
  410.  The box at the bottom of the screen details how QEMM uses
  411. memory. The first number, the total amount of memory, is the same
  412. as the total of the third column from the top box. The next
  413. numbers indicate the size of QEMM's code and data, the memory
  414. reserved for QEMM tasks, the memory reserved for a DMA buffer,
  415. the memory reserved for real alternate maps, the memory for
  416. mapping ROMs, and finally a small amount of memory (usually less
  417. than 16K) which was unused for various reasons. These numbers can
  418. be changed depending on the set up of your computer and your use
  419. of some command line parameters to QEMM.SYS.
  420.  
  421.  At the bottom of the screen is a number showing how much of your
  422. conventional memory area is being used by QEMM. This number is
  423. always very small.
  424.  
  425.  If You Think There Is More Memory in Your PC Than Is Shown:
  426. Check that your PC's CMOS is set up properly, and that there are
  427. no defective (or loose) memory chips.
  428.  
  429.  Why QEMM May Not Be Able to Use All of Your shadow RAM: Shadow
  430. RAM which overlaps ROM or installed adapter memory cannot be used
  431. by QEMM. Thus, shadow RAM which overlaps the system ROM, the
  432. video adapter ROM, the video display RAM and any other adapters
  433. you have will not be affected by the presence of QEMM.
  434.  
  435.  Let QEMM Allocate Extended Memory: We suggest that you not load
  436. device drivers that use extended memory before QEMM. Instead,
  437. reserve extended memory for later use by using QEMM's
  438. EXTMEM=command line switch. However, if your extended memory
  439. program can get its memory through XMS, you don't need to reserve
  440. extended memory for it.
  441.  
  442.  Using Maps: If you are not using a multitasking environment,
  443. such as DESQview, specify the MAPS=0 parameter on the QEMM.SYS
  444. command line to gain an additional 32K of expanded memory. If you
  445. are using DESQview you should have one map plus two map for each
  446. DESQview window you use. 
  447.  
  448.  Unassigned: The Unassigned category of this screen represents
  449. that memory which QEMM-386 controls but which has not been given
  450. any function. After QEMM-386 has set up its data and high RAM and
  451. other resources, whatever is left of memory is made expanded
  452. memory. Since expanded memory is allocated 16K at a time, any
  453. memory that is less than 16K or is fragmented is left as
  454. Unassigned. Some of the QEMM-386 parameters can be altered (RAM,
  455. MAPS, ROM, primarily) to increase or decrease the amount of
  456. Unassigned memory, to either use it for these new purposes or to
  457. increase it until it becomes more expanded memory.
  458.